//
//  VCOfSecond.m
//  SimpleController
//
//  Created by dllo on 16/5/11.
//  Copyright © 2016年 jcl. All rights reserved.
//

#import "VCOfSecond.h"
#import "VCThid.h"
@interface VCOfSecond ()

@end

@implementation VCOfSecond

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor grayColor];
    
    [self createNavigation];
    
    
}

- (void)createNavigation {
    
    self.navigationController.navigationBar.backgroundColor = [UIColor blackColor];
    
    
    self.navigationItem.titleView = [[UISegmentedControl alloc] initWithItems:@[@"第2.1页", @"第2.2页"]];
    
    
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemStop target:self action:@selector(handleRigh:)];
    
    
    
    
}

- (void)handleRigh:(UIBarButtonItem *)rihgt {
    
    VCThid *vc3 = [[VCThid alloc] init];
    
    [self.navigationController pushViewController:vc3 animated:YES];
    
    
}



@end
